import os;

def countDir(dir):
    content = os.listdir(dir);

    for entry in content:
        if entry.startswith("."): continue

	if os.path.isdir(dir + "/" + entry):
            countDir(dir + "/" + entry);
        else:
            os.system("wc " + dir + "/" + entry);

countDir(".");
